<!DOCTYPE html>
<html xmlns:th="https://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <meta name="referrer" content="never">
    <title>抖音排行榜 | Anoyi 主题站</title>
    <link rel="icon" type="image/x-icon" href="https://cdn.anoyi.com/anoyi-favicon.ico">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.css" rel="stylesheet">
    <link href="https://anoyi.cn-sh2.ufileos.com/mdb.css" rel="stylesheet">
    <link href="https://anoyi.cn-sh2.ufileos.com/style.css" rel="stylesheet">
    <link href="https://anoyi.cn-sh2.ufileos.com/toastr.css" rel="stylesheet">
</head>

<body class="creative-lp">

<header>
    <nav th:replace="~{common :: nav}"></nav>
</header>

<div class="view jarallax" data-jarallax='{"speed": 0.2}' style="min-height: unset">
    <img src="https://upload-images.jianshu.io/upload_images/3424642-d2fc34ee270df22b.png" width="100%" style="margin-top: 70px">
    <div class="full-bg-img">
        <div class="mask rgba-black-light">
            <div class="container flex-center">
                <div class="row pt-5 mt-3">
                    <div class="col-md-12 wow fadeIn mb-3">
                        <div class="text-center white-text">
                            <ul class="list-unstyled ">
                                <li>
                                    <h5 class="display-4 mt-md-5 mt-md-0 mb-5 font-weight-bold white-text wow fadeIn"
                                        data-wow-delay="0.3s">
                                        <strong>  抖音排行榜，记录美好生活  </strong>
                                    </h5>
                                    <hr class="hr-light wow fadeInLeft animated" data-wow-delay="0.3s" style="visibility: visible; animation-name: fadeInLeft; animation-delay: 0.3s;">
                                    <h6 class="wow fadeInLeft animated" data-wow-delay="0.3s" style="visibility: visible; animation-name: fadeInLeft; animation-delay: 0.3s;">
                                        排行榜数据来源于第三方，非实时非官方，视频数据均为实时数据，请勿商用！
                                    </h6>
                                </li>
                                <li class="wow fadeIn pt-4" data-wow-delay="0.4s">
                                    <a class="btn pink-gradient btn-rounded btn-lg font-weight-bold" href="/dy/95044648655">作者抖音</a>
                                    <a class="btn pink-gradient btn-rounded btn-lg font-weight-bold" href="https://cloud.anoyi.com/" target="_blank">在线接口</a>
                                    <a class="btn pink-gradient btn-rounded btn-lg font-weight-bold" href="https://www.jianshu.com/p/43c10df00be3" target="_blank">Web 原理</a>
                                    <a class="btn pink-gradient btn-rounded btn-lg font-weight-bold" href="https://www.jianshu.com/p/4af7e10bd62e" target="_blank">App 原理</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<!-- Main Container -->
<div class="container">
    <div class="row pt-4">
        <div class="col-lg-12">
            <section class="section pt-4">
                <div class="row">
                    <div class="col-lg-4 col-md-6 mb-4" th:each="user : ${users}">
                        <div class="card testimonial-card mb-4">
                            <div class="card-up peach-gradient">
                                <div class="float-left mt-1 ml-2">
                                </div>
                                <div class="float-right mt-1 mr-2">
                                    <span class="badge badge-pill badge-warning" th:text="'Top ' + ${user.rank}"></span>
                                </div>
                            </div>
                            <div class="avatar mx-auto white">
                                <a th:href="'/dy/' + ${user.id}">
                                    <img th:src="${user.avatar}" class="rounded-circle">
                                </a>
                            </div>
                            <div class="card-body">
                                <a th:href="'/dy/' + ${user.id}"><h4 class="card-title" th:text="${user.nickname}"></h4></a>
                                <span class="badge badge-pill badge-secondary" th:text="${!#strings.isEmpty(user.category)} ? ${user.category} : '未知'"></span>
                            </div>
                        </div>
                    </div>

                </div>

            </section>
        </div>
    </div>
</div>

<!-- 返回顶部 -->
<section >
    <div class="fixed-action-btn" style="bottom: 45px; right: 24px;">
        <a class="btn-floating btn-lg purple-gradient" style="display:none;" id="goTop">
            <i class="fa fa-arrow-up" aria-hidden="true"></i>
        </a>
    </div>
</section>

<!-- 网站底部 -->
<footer th:replace="~{common :: footer}"></footer>
<!-- /网站底部 -->

<!-- JQuery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- Bootstrap core JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/js/bootstrap.min.js"></script>
<!-- MDB core JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.5.0/js/mdb.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script>

<script>
    //Animation init
    new WOW().init();

    // 返回顶部
    $(function(){
        $(window).scroll(function(){
            if($(window).scrollTop() > 500){
                $("#goTop").fadeIn(200);
            }
            else{
                $("#goTop").hide(200);
            }
        });
        $("#goTop").click(function(){
            $('html,body').animate({'scrollTop': 0 }, 500);
        });
    });

</script>

</body>
</html>